<template>
  <div>
    <h2>TsButton</h2>
    <button @click="emit('change-name', 'yes')">change-name</button>
    <button @click="emit('up-video', 'ok')">up-video</button>
  </div>
</template>
<script setup>
import { defineEmits } from 'vue';
// emit(事件名) 触发事件
const emit = defineEmits(['change-name', 'up-video']);
</script>